<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common.inc" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript">
<!--
	function back(){
		window.location.href = "./functionTree.do";
		window.location.target = "main";
	}
	
	function addSaleRecord(){
		window.location.href = "addSaleRecord.html";
		window.location.target = "main";
	}
	
	function updateSaleRecord(){
		window.location.href = "updateRecord.html";
		window.location.target = "main";
	}
-->
</script>
</head>
<body>
	<table class="table_frame" cellpadding="0" cellspacing="0">
		<tr>
			<td>
				<table class="table_title" cellpadding="0" cellspacing="0">
					<tr>
						<td class="title_lab" colspan="3">
							&nbsp;&nbsp;&nbsp;&nbsp;<fmt:message key='func.title.view'/>
						</td>
					</tr>
					<tr><td height="15"></td></tr>
					<tr>
						<td valign="bottom" align="right">
							<a href="javascript:back();" title="<fmt:message key='common.button.back'/>" hidefocus="true"><fmt:message key='common.button.back'/></a>&nbsp;&nbsp;&nbsp;&nbsp;
						</td>
					</tr>
					<tr><td height="2"></td></tr>
				</table>
			</td>
		</tr>
		<tr>
			<td height="5"></td>
		</tr>
		<tr>
			<td>
				<table class="table_input1" cellpadding="0" cellspacing="0">
					<tr><td colspan="5"></td></tr>
					<tr>
						<td width="1%"></td>
						<td class="" width="15%"><fmt:message key='func.lable.funcName'/><fmt:message key='common.sign'/></td>
						<td class="" width="40%">${function.functionName}</td>
						<td class="" width="15%"><fmt:message key='func.lable.parent'/><fmt:message key='common.sign'/></td>
						<td class="">${function.parentName}</td>
						<td width=""></td>
					</tr>
					<tr>
						<td width="1%"></td>
						<td class="" width=""><fmt:message key='func.lable.funcNameEn'/><fmt:message key='common.sign'/></td>
						<td class="" width="">${function.functionNameEn}</td>
						<td class="" width=""><fmt:message key='func.lable.funcOrder'/><fmt:message key='common.sign'/></td>
						<td class="" width="">${function.functionOrder}</td>
						<td width=""></td>
					</tr>
					<tr>
						<td width="1%"></td>
						<td class="" width=""><fmt:message key='common.lable.isActivity'/><fmt:message key='common.sign'/></td>
						<td class="" width="">
							<c:choose>
								<c:when test="${function.isActivity == 1}"><fmt:message key='common.lable.is'/></c:when>
								<c:otherwise><fmt:message key='common.lable.no'/></c:otherwise>
							</c:choose>
						</td>
						<td class="" width="">URL：</td>
						<td class="" width="">${function.url}</td>
						<td width=""></td>
					</tr>
					<tr><td colspan="6"></td></tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>
				<table class="table_style" style="text-align: center;">
					<tr>
						<td class="title4"><fmt:message key='func.lable.operateCode'/></td>
						<td class="title4"><fmt:message key='func.lable.operateName'/></td>
						<td class="title4" width="15%"><fmt:message key='common.lable.isActivity'/></td>
					</tr>
					<c:forEach var="operate" items="${operates}">
					<tr>
						<td>${operate.operateCode}</td>
						<td>
							<c:choose>
								<c:when test="${language == 2}">${operate.operateNameEn}</c:when>
								<c:otherwise>${operate.operateName}</c:otherwise>
							</c:choose>
						</td>
						<td>
							<c:choose>
								<c:when test="${operate.isActivity == 1}"><fmt:message key='common.lable.is'/></c:when>
								<c:otherwise><fmt:message key='common.lable.no'/></c:otherwise>
							</c:choose>
						</td>
					</tr>
					</c:forEach>
				</table>
			</td>
		</tr>
	</table>
</body>
</html>